package com.luoye.lj.platform.service;

import com.luoye.lj.platform.model.domain.RoleCollection;
import com.luoye.lj.platform.model.domain.RoleInfo;
import com.luoye.lj.platform.model.domain.RoleInfoSearch;
import com.luoye.lj.platform.model.domain.RoleSaveInfo;

import java.util.List;

/**
 * Created by wei on 2015/12/1.
 */
public interface IRoleService {
    //添加
    boolean addRole(RoleSaveInfo role)throws Exception;
    //删除
    boolean delRole(long id)throws Exception;
    //修改
    boolean modifyRole(RoleSaveInfo role)throws Exception;
    //查询所有
    List<RoleInfo> getAll()throws Exception;
    //条件查询
    RoleCollection search(RoleInfoSearch search)throws Exception;

}
